package com.yuxi.modelDesc;

import lombok.Data;
import com.yuxi.model.Product;


import com.yuxi.enums.ProductShowFlagEnum;
import com.yuxi.enums.ProductDelFlagEnum;
import com.yuxi.enums.ProductRecommendFlagEnum;
import com.yuxi.enums.ProductNewFlagEnum;

/**
*    @author com.yuxi
*    @Date 2023-10-18 23:45:30
*    @description ProductDesc      产品
*/
@Data
public class ProductDesc extends Product {


    private String showFlagDesc;
    private String delFlagDesc;
    private String recommendFlagDesc;
    private String newFlagDesc;

    public String getShowFlagDesc() {
        showFlagDesc=ProductShowFlagEnum.getDescByType(getShowFlag());
        return showFlagDesc;
    }
    public String getDelFlagDesc() {
        delFlagDesc=ProductDelFlagEnum.getDescByType(getDelFlag());
        return delFlagDesc;
    }
    public String getRecommendFlagDesc() {
        recommendFlagDesc=ProductRecommendFlagEnum.getDescByType(getRecommendFlag());
        return recommendFlagDesc;
    }
    public String getNewFlagDesc() {
        newFlagDesc=ProductNewFlagEnum.getDescByType(getNewFlag());
        return newFlagDesc;
    }
}

